<?php
/*
 * Create by DucNN
 * Create date: 13/12/2012
 */
class Order extends DataMapper {
    public  $has_one = array("customer");
    
    public $has_many = array(        
        'product' => array(			
            'class' => 'product',			
            'other_field' => 'order',		
            'join_self_as' => 'order',		
            'join_other_as' => 'product',		
            'join_table' => 'hd_orders_products'
        )	
    );
    public function __construct()
    {
        // model constructor
        parent::__construct();
    }   
}
?>